﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZBJF.Warranty.Model;
using ZBJF.Warranty.Model.ViewModel.SortingCenter;

namespace ZBJF.Warranty.IBLL
{
    public partial interface ISortingCenterService
    {
        /// <summary>
        /// 根据主键ID获取分拣中心
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        SortingCenter LoadByID(int id);

        /// <summary>
        /// 判断分拣中心是否存在
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        bool IsExist(string SortingCenterName, int id = 0);

        /// <summary>
        /// 分页获取分拣中心列表
        /// </summary>
        /// <param name="model">过滤条件</param>
        /// <param name="total">总数量</param>
        /// <returns></returns>
        IQueryable<SortingCenter> GetPagingList(SortingCenterModel model, out int total);
        /// <summary>
        /// 获取分拣中心列表
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        IQueryable<SortingCenter> GetSortingAll();
    }
}
